package com.woniu.mapper;

import com.woniu.entity.AllGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
* @author nanqiao
* @description 针对表【all_group】的数据库操作Mapper
* @createDate 2025-06-13 14:27:24
* @Entity com.woniu.entity.AllGroup
*/
public interface AllGroupMapper extends BaseMapper<AllGroup> {

    @Select("select u.* from group g join rel_user_group ug on g.group_id = ug.group_id join user u on ug.user_id=u.user_id where group_id = #{groupId}")
    AllGroup selectByGroupId(Integer groupId);

}




